package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_TransportationType", catalog="Id")
public class TccTransportationType extends BaseEntity<TccTransportationType> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="TransportationTypeCn", nameJava="transportationTypeCn", typeDataBase="varchar")
	private String transportationTypeCn;
	@YsField(nameDataBase="TransportationTypeEn", nameJava="transportationTypeEn", typeDataBase="varchar")
	private String transportationTypeEn;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccTransportationType setId(Long id) {
		this.id = id;
		return this;
	}
	public String getTransportationTypeCn() {
		return transportationTypeCn;
	}
	public TccTransportationType setTransportationTypeCn(String transportationTypeCn) {
		this.transportationTypeCn = transportationTypeCn;
		return this;
	}
	public String getTransportationTypeEn() {
		return transportationTypeEn;
	}
	public TccTransportationType setTransportationTypeEn(String transportationTypeEn) {
		this.transportationTypeEn = transportationTypeEn;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccTransportationType setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccTransportationType setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccTransportationType setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccTransportationType tccTransportationType(
		String transportationTypeCn,
		String transportationTypeEn,
		Integer status
			) {
		TccTransportationType entity = new TccTransportationType();
		entity.setTransportationTypeCn(transportationTypeCn);
		entity.setTransportationTypeEn(transportationTypeEn);
		entity.setStatus(status);
		return entity;
	}
}